﻿using EFCore.Models;
using SIService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SService
{
    public class SyskcallotdetailS : SyskcallotdetailSI
    {
        private readonly WmssystemContext myDb;

        public SyskcallotdetailS(WmssystemContext myDb)
        {
            this.myDb = myDb;
        }
        public async Task<int> Add(Sys_kc_allot_detail sys_Kc_Allot_Detail)
        {
            myDb.Sys_kc_allot_detail.Add(sys_Kc_Allot_Detail); // 确保不显式指定标识列的值
            return await myDb.SaveChangesAsync();
        }
    }
}
